package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 *
 * 创建时间 2019/11/22 3:47 PM
 * 修改时间 2019/11/22 3:47 PM
 * @author chy
 */
@Getter
public enum UpdateCustomerTeamScenesEnum {
    // 是否有栗子详情页
    PUBLIC_RULE_SCRIPT(1, "enum.updateCustomerTeamScenes.name.public_rule_script", "publicRuleScript"),
    USER_LEAVE(2, "enum.updateCustomerTeamScenes.name.user_leave", "userLeave"),
    USER(3, "enum.updateCustomerTeamScenes.name.user", "user");

    private Integer code;
    private String name;
    private String alias;

    UpdateCustomerTeamScenesEnum(Integer code, String name, String alias) {
        this.code = code;
        this.name = name;
        this.alias = alias;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
